package com.eascs.web.o2o.report.service;

import java.util.List;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.eascs.app.log.Logger;
import com.eascs.app.log.LoggerFactory;
import com.eascs.web.o2o.report.dao.BaseReportDao;

@Service
public class SynoInfoReportService extends BaseReportService {
	protected final Logger logger = LoggerFactory.getLogger(getClass());
	@Inject
	BaseReportDao baseReportDao;
	
	
	public boolean query(){
		List<Object[]> list= baseReportDao.findObjectsList("select * from syno_info where syno_date = date_format(sysdate(),'%Y-%m-%d') and syno_status = 1");
		if(list.size()==3){
			return true;
		}else{
			return false;
		}
		
	}
	
	
}
